package com.ruoyi.event.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.UserDrugInfo;
import com.ruoyi.common.annotation.UserMemberInfo;
import lombok.Data;

import java.util.Date;


/**
 * 帮扶情况视图对象 event_bf_record
 *
 * @author strongme
 * @date 2023-02-04
 */
@Data
@ExcelIgnoreUnannotated
public class EventBfRecordVo implements EventInfo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long bfRecordId;

    /**
     * 被帮扶人员id
     */
    @ExcelProperty(value = "被帮扶人员id")
    private Long userId;

    @UserDrugInfo
    public Object getUserInfo() {
        return userId;
    }

    /**
     * 帮扶人员id
     */
    @ExcelProperty(value = "帮扶人员id")
    private Long memberId;

    @UserMemberInfo
    public Object getMemberInfo() {
        return memberId;
    }

    /**
     * 帮扶时间
     */
    @ExcelProperty(value = "帮扶时间")
    private Date bfsj;

    /**
     * 帮扶概要
     */
    @ExcelProperty(value = "帮扶概要")
    private String bfgy;

    /**
     * 帮扶内容
     */
    @ExcelProperty(value = "帮扶内容")
    private String bfnr;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String img;

    @Override
    public Long getId() {
        return bfRecordId;
    }

    @Override
    public String getText() {
        return bfgy;
    }

    @Override
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getTime() {
        return bfsj;
    }

}
